<!DOCTYPE html>
<html>
    <head>    	
	   	<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="shortcut icon" href="${resource(dir:'css/images',file:'favicon.ico')}" type="image/x-icon" />
		
	   	<!-- <link rel="stylesheet" href="${resource(dir:'css',file:'jquery.mobile-1.0b3.min.css')}"/> -->
		<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
		
	   	<!-- <script src="${resource(dir:'js/jquery',file:'jquery-1.6.1.min.js')}" /></script> -->
		<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
	    
		<script type="text/javascript">
			$(document).bind("mobileinit", function(){
				$.mobile.defaultPageTransition = 'none';
				$.mobile.defaultDialogTransition = 'none';
				$.mobile.loadingMessage = 'chargement...';
			});
		</script>
			    
		<!-- <script src="${resource(dir:'js/jquery',file:'jquery.mobile-1.0b3.min.js')}"></script> -->
		<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
	    
		<link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}"/>
		
	    <script src="${resource(dir:'js/jquery',file:'jquery.validate.min.js')}"></script>
	    <script src="${resource(dir:'js/jquery',file:'messages_fr.js')}"></script>
		
	    <g:layoutHead />
		
		<script type="text/javascript">
		    var _gaq = _gaq || [];
		
		    (function() {
		      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		    })();
		</script>
    </head>
    
    <body>
        <g:layoutBody />
        
        <script type="text/javascript">
        $('[data-role=page]').live('pageshow', function (event, ui) {
            try {
                _gaq.push(['_setAccount', 'UA-26479359-1']);
                hash = location.hash;
                if (hash) {
                    _gaq.push(['_trackPageview', hash.substr(1)]);
                } else {
                    _gaq.push(['_trackPageview']);
                }
            } catch(err) {}
        });
        </script>
    </body>
</html>